package oop4.animal;

public class Dog extends Pet {

    Dog(String name, String strain, int weight, int age, char sex, int love, int health) {
        super(name, strain, weight, age, sex, love, health);
//        this.name=name;
    }

    public void grab(String mouse) {
        System.out.println("小狗" + super.getName() + "抓住了老鼠" + mouse);
    }

    @Override
    public void eat() {
        System.out.println("小狗" + this.getName() + "吃狗粮");
    }

    @Override
    public String toString() {
        return "小狗"+getName();
    }
}

